<?php  
class AdressController extends Controller{
	private $db;
	public function __init(){
		$this->db=K('Adress');
	}

	/**
	 * 异步添加收货地址
	 */
	public function add(){
		if ($id=$this->db->addAdress()) {
			
			echo json_encode(array('status'=>1,'id'=>$id));exit;
		}else{

			$this->error($this->db->error);
		}
	}
}
?>